home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Tools - Objects / E.T.O. #4 Installer / 411 Install next >
Text File  |  1991-05-23  |  2KB  |  79 lines

  1. #    M P W  4 1 1   I N S T A L L A T I O N   S C R I P T
  2. #
  3. #    Copyright Apple Computer, Inc. 1990, 1991 - All rights reserved.
  4. #    
  5. #
  6. #    This script is used to install MPW 411 files from the E.T.O. #4 distribution
  7. #    compact disk into the "MPW Folder" on the destination hard disk. 
  8. #
  9. #    Options: None
  10. #
  11. #    This script makes use of the following Shell variables:
  12. #
  13. #    {CDVolume}        - the name of the CD Distribution volume
  14. #
  15. #    {DestVolume}    - the name of the volume from which the Installer was launched
  16. #
  17. #    {MacAppFlag}    - flag indicating if MacApp is being installed (for MacApp 411)
  18. #
  19. #    {ToDir}            - the name of the MPW destination folder
  20.  
  21. Set Exit 0
  22.  
  23. Set DestMPW        "{ToDir}:"
  24. Set    Source411    "{CDVolume}Essentials:MPW 411:"
  25. Set    MacApp411    "{CDVolume}Essentials:MacApp Documentation:Class&Method Reference (411):"
  26.  
  27. # Copy the 411 User Startup script into the user's MPW Shell directory.
  28.     
  29. # First, disable the old UserStartup script if one exists.
  30.  
  31. If "`Exists -f "{DestMPW}UserStartup•~_Help_"`"
  32.     Rename -y "{DestMPW}UserStartup•~_Help_" "{DestMPW}UserStartup.~_Help_"
  33. End
  34.     
  35. Duplicate -y "{Source411}Tools:UserStartup•Help"     "{DestMPW}"
  36.  
  37. # Same thing with the get tool
  38.  
  39. If "`Exists -f "{DestMPW}Tools:Get"`"
  40.     Rename -y "{DestMPW}Tools:Get" "{DestMPW}Tools:Get.Old"
  41. End
  42.     
  43. Duplicate "{Source411}Tools:Get"     "{DestMPW}Tools:Get"
  44.  
  45. # Remove old help system files.
  46.  
  47. If "`Exists -d "{DestMPW}Help Folder"`"
  48.     Delete  -y "{DestMPW}Help Folder"
  49. End
  50.  
  51. NewFolder "{DestMPW}Help Folder"
  52.  
  53. # If requested, copy the entire 411 folder from the CD to the MPW folder
  54.  
  55. if "{411Option}" == "2"        ### copy all of the help files to the hard drive
  56.     Duplicate -y "{Source411}"        "{DestMPW}Help Files:"
  57.     
  58.     If "{MacAppFlag}" != "0"    ### copy the MacApp help files as well
  59.         Duplicate -y "{MacApp411}MacApp411Help"            "{DestMPW}Help Files:"
  60.         Duplicate -y "{MacApp411}MacApp411Help.index"    "{DestMPW}Help Files:"
  61.     End
  62. End
  63.     
  64.  
  65. # Setup the 411 directory.
  66.  
  67. Set HelpDirectory "{DestMPW}Help Folder:"
  68.     
  69. If not "`Exists -d "{HelpDirectory}"`"
  70.     NewFolder "{HelpDirectory}"
  71. End
  72.  
  73. If "{411Option}" == "2"
  74.     Echo "{DestMPW}Help Files:" > "{HelpDirectory}Help_Folder"
  75. Else
  76.     Echo "{Source411}Help Files" > "{HelpDirectory}Help_Folder"
  77. End  
  78.  
  79.